import request from '@/utils/requestMd5'

export function datum_index(params) {
  return request({
    // url: '/datum/index',
    url: '/goods/datumList',
    method: 'get',
    params
  })
}

export function datum_add(data) {
  return request({
    // url: '/datum/add',
    url: '/goods/addDatum',
    method: 'post',
    data:data
  })
}

//软删除
// export function datum_softDelete(data) {
//   return request({
//     // url: '/datum/softDelete',
//     url: '/goods/deleteDatum',
//     method: 'post',
//     data:data
//   })
// }

//删除标签
export function datum_delete(data) {
  return request({
    // url: '/datum/delete',
    url: '/goods/deleteDatum',
    method: 'post',
    data:data
  })
}

export function datum_edit(data) {
  return request({
    url: '/datum/edit',
    method: 'post',
    data:data
  })
}


export function datum_list(params) {
  return request({
    url: '/datum/list',
    method: 'get',
    params
  })
}

export function datum_use(data) {
  return request({
    url: '/datum/use',
    method: 'post',
    data:data
  })
}
